/*
 * Copyright (C) 2001-2005 Pleasant nightmare studio
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package org.pleasantnightmare.noraxidium.math;

import org.apache.log4j.Logger;
import org.lwjgl.util.vector.ReadableVector2f;
import org.lwjgl.util.vector.Vector2f;

/**
 * Enriches LWJGL vector with some additional methods.
 *
 * @author deus
 * @version 1.0
 * @since Jul 9, 2010 12:49:46 PM
 */
public class GameVector2f extends Vector2f {
  private static final Logger LOGGER = Logger.getLogger(GameVector2f.class);

  public GameVector2f() {
    zero();
  }

  public GameVector2f(ReadableVector2f src) {
    super(src);
  }

  public GameVector2f(float x, float y) {
    super(x, y);
  }

  public void scale(ReadableVector2f readableVector2f) {
    x *= readableVector2f.getX();
    y *= readableVector2f.getY();
  }

  public void zero() {
    x = 0.0F;
    y = 0.0F;
  }
}
